package com.yummy.web.security.context;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.Set;

public interface Session extends Serializable{

	public String getId();

	public boolean isValid();
	
	public boolean isExpired();
	
	public boolean isLogin();

	public Date getLastAccessedTime();

	public Object getAttribute(String name);

	public Set<String> getAttributeNames();

	public void setAttribute(String name, Object value);
	
	public void setAttributes(Map<String,Object> attributes);

	public void removeAttribute(String name);
	
	public void invalidate();
	
	public void touch();
}
